package bjf

{{ with $.GetSchemaComponents}}
{{ range $name, $def := . }}{{if is_object_schema $def.Value}}
type {{ valid_var_name $name }} struct { {{ range $key,$par := $def.Value.Properties}}
    {{valid_var_name $key}}   {{get_var_type $par}} `json:"{{$key}}" xml:"{{$key}}" form:"{{$key}}"`{{end}}
}
{{end}}{{end}}{{end}}